{% extends "template.html" %}	

{% block title %} Inserimento/Modifica cell {% endblock %}	

{% block content %}
  {% if error_message %}
    <p><strong>{{ error_message }}</strong></p>
  {% endif %}
  
    <h1>{{ sezione.titolo }}</h1>
   <a href="/mysite/pynotes/note/type/add/"> ADD TYPE</a>
  {% if note_id  %}
  	<form action="/mysite/pynotes/note/new/{{ note_id}}/" method="post">
  {% else %}
	 <form action="/mysite/pynotes/note/new/" method="post">  
  {% endif %}
  {% csrf_token %}
  {{ form.as_p }}
  
  
  
  {% for field in form %}
  	{{ field.errors }}
  {% endfor %}
  
  {% endblock %}
  
  {% block sider %}
  		
			<h2>Actions</h2>
			    <a href="/mysite/pynotes" class="download-btn">Back</a>
              	<a href="/mysite/pynotes/note/type/add" class="download-btn">Add Type</a>
              	 <input type="submit" value="Save" class="download-btn"/>
       
  </form>
  	
{% endblock %}